<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="model" scope="session" class="model.WebModel"/>
<%@page session="true"  errorPage="PaginaError.jsp" %>




<%
    model.init(application);


    request= (HttpServletRequest)pageContext.getRequest();
    String BASEURL= request.getContextPath();
    String CONTROLLER=BASEURL + "/controller";

 %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
    <!--
    Created by Artisteer v2.3.0.23326
    Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
    -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>Request & Send </title>
    <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAhJvNRwdHCzNPZU_I7Rw6IxQ4Cg8uvp3HuRtP3UdsoSF7xQyJ4lBGSea-ar0o_vtVLOwmGoyLQ"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[

var contador = 1; // contador para marcar puntos de interes

// Creates a marker at the given point with the given number label
function createMarker(point, number) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml("Marcador#<b>" + number + "<br>Pos " + point.toString() + "</b>");
});
return marker;
}


function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"),"hybrid");

// insertar los controles
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());


// establecer el listener para actualizar la posición del punto central
GEvent.addListener(map, "moveend", function() {
var center = map.getCenter();
document.getElementById("message").innerHTML = center.toString();
});

// establecer el punto origen, nivel de zoom y tipo de mapa
map.setCenter(new GLatLng(10.335058423388778,-75.41175216436386),15, G_SATELLITE_MAP);

// establecer marcadores
GEvent.addListener(map, "click", function(marker, point) {
if (marker) {
map.removeOverlay(marker);
} else {
map.addOverlay(createMarker(point, contador));
contador = contador + 1;
}
});

// poner el texto de aquí esta Autentia
map.openInfoWindow(map.getCenter(),document.createTextNode("Aqui Esta la Empresa-Confiteria Fuentes"));
}
}

//]]>
</script>

    <script type="text/javascript" src="SCRIPS/script.js"></script>

    <link rel="stylesheet" href="CSS/style.ie6.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="CSS/style.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="CSS/style.ie7.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="CSS/view.css" type="text/css" media="screen" />

</head>
<body onload="load()" onunload="GUnload()">
    <div id="art-page-background-gradient"></div>
    <div id="art-page-background-glare">
       <div id="art-page-background-glare-image"></div>
    </div>
    <div id="art-main">
        <div class="art-Sheet">
            <div class="art-Sheet-tl"></div>
            <div class="art-Sheet-tr"></div>
            <div class="art-Sheet-bl"></div>
            <div class="art-Sheet-br"></div>
            <div class="art-Sheet-tc"></div>
            <div class="art-Sheet-bc"></div>
            <div class="art-Sheet-cl"></div>
            <div class="art-Sheet-cr"></div>
            <div class="art-Sheet-cc"></div>
            <div class="art-Sheet-body">
                <div class="art-Header">
                    <div class="art-Header-png"></div>
                    <div class="art-Header-jpeg"></div>
                    <div class="art-Logo">
                        <h1 id="name-text" class="art-Logo-name"><a href="#">Confiter&iacute;a Fuentes</a></h1>
                        <div id="slogan-text" class="art-Logo-text"></div>
                    </div>
                </div>
                  <jsp:include page="ClienteMenu.jsp"/>
                <div class="art-contentLayout"><br/><br/>
                  <center>
                  <div id="map" style="width: 800px; height: 600px"></div>
                  <div id="message"></div>
                  </center>
                    <br/><br/>
                  </div>
     </div>
             </div>
         </div>

</body>
</html>
